package com.learn;

import com.learn.config.GlobalExceptionHandler;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;


@SpringBootApplication()
public class AdabankBackendApplication {

    public static void main(String[] args) {
        SpringApplication.run(AdabankBackendApplication.class, args);
    }
    // 注册统一异常处理bean
    @Bean
    public GlobalExceptionHandler globalExceptionHandler() {
        return new GlobalExceptionHandler();
    }
}
